import sys

n =0
while True:
    line = sys.stdin.readline()
    if not line:
        break
    n += 1
sys.stdout.write(str(n))
sys.stdout.flush()